
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>调试go智能合约 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="chap11.html" />
    
    
    <link rel="prev" href="chap9.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    编译部署
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="chap1.html">
            
                <a href="chap1.html">
            
                    
                    编译与测试网络部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="chap2.html">
            
                <a href="chap2.html">
            
                    
                    网络生成配置说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="chap3.html">
            
                <a href="chap3.html">
            
                    
                    启动网络脚本配置剖析
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    通道实践
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="chap4.html">
            
                <a href="chap4.html">
            
                    
                    创建加入通道
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="chap5.html">
            
                <a href="chap5.html">
            
                    
                    更新通道配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="chap6.html">
            
                <a href="chap6.html">
            
                    
                    动态添加组织
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    合约实践
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="chap7.html">
            
                <a href="chap7.html">
            
                    
                    安装发布智能合约
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="chap8.html">
            
                <a href="chap8.html">
            
                    
                    升级智能合约
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="chap9.html">
            
                <a href="chap9.html">
            
                    
                    智能合约设置背书策略
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.4" data-path="chap10.html">
            
                <a href="chap10.html">
            
                    
                    调试go智能合约
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="chap11.html">
            
                <a href="chap11.html">
            
                    
                    外部构建启动合约
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    SDK实践
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="chap12.html">
            
                <a href="chap12.html">
            
                    
                    基于Java SDK实现合约交易
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >调试go智能合约</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <p>&#x7531;&#x4E8E;&#x667A;&#x80FD;&#x5408;&#x7EA6;&#x7684;&#x4E00;&#x822C;&#x8FD0;&#x884C;&#x73AF;&#x5883;&#x662F;&#x5728;docker&#x5BB9;&#x5668;&#x91CC;&#x9762;&#xFF0C;&#x56E0;&#x6B64;&#x5728;&#x8C03;&#x8BD5;&#x667A;&#x80FD;&#x5408;&#x7EA6;&#x7684;&#x4EE3;&#x7801;&#x903B;&#x8F91;&#x4E0A;&#x9762;&#x53EF;&#x80FD;&#x4E0D;&#x662F;&#x90A3;&#x4E48;&#x7684;&#x65B9;&#x4FBF;&#xFF0C;&#x7279;&#x522B;&#x662F;&#x5BF9;&#x4E8E;&#x667A;&#x80FD;&#x5408;&#x7EA6;&#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x6765;&#x8BF4;&#xFF0C;&#x56E0;&#x6B64;&#x4E0B;&#x9762;&#x5C06;&#x57FA;&#x4E8E;vscode&#x7F16;&#x8F91;&#x5668;&#x6F14;&#x793A;&#x5982;&#x4F55;&#x8C03;&#x8BD5;go&#x5408;&#x7EA6;</p>
<h2 id="1-&#x73AF;&#x5883;&#x51C6;&#x5907;">1. &#x73AF;&#x5883;&#x51C6;&#x5907;</h2>
<table>
<thead>
<tr>
<th>&#x7CFB;&#x7EDF;&#x5DE5;&#x5177;</th>
<th>&#x7248;&#x672C;</th>
</tr>
</thead>
<tbody>
<tr>
<td>window</td>
<td>10</td>
</tr>
<tr>
<td>go</td>
<td>1.14</td>
</tr>
<tr>
<td>vscode</td>
<td>1.42.1</td>
</tr>
</tbody>
</table>
<h3 id="11-&#x4E0B;&#x8F7D;vscode-go&#x63D2;&#x4EF6;">1.1 &#x4E0B;&#x8F7D;vscode go&#x63D2;&#x4EF6;</h3>
<p>&#x6253;&#x5F00;vscode&#x7684;&#x63D2;&#x4EF6;&#x7BA1;&#x7406;&#xFF0C;&#x4E0B;&#x8F7D;go&#x63D2;&#x4EF6;&#x5982;&#x4E0B;&#xFF1A;
<img src="https://img-blog.csdnimg.cn/20200302183246323.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI4NTQwNDQz,size_16,color_FFFFFF,t_70" alt="&#x5728;&#x8FD9;&#x91CC;&#x63D2;&#x5165;&#x56FE;&#x7247;&#x63CF;&#x8FF0;"></p>
<h2 id="2&#x7F16;&#x8F91;&#x5408;&#x7EA6;">2.&#x7F16;&#x8F91;&#x5408;&#x7EA6;</h2>
<h3 id="21-&#x521B;&#x5EFA;&#x5408;&#x7EA6;">2.1 &#x521B;&#x5EFA;&#x5408;&#x7EA6;</h3>
<p>&#x5728;&#x672C;&#x5730;gopath&#x521B;&#x5EFA;mychaincode01/test&#x76EE;&#x5F55;&#xFF0C;&#x76EE;&#x5F55;&#x540D;&#x79F0;&#x53EF;&#x81EA;&#x5B9A;&#x4E49;&#x3002;
&#x6267;&#x884C;go mod init&#x547D;&#x4EE4;&#x521D;&#x59CB;&#x5316;go.mod &#x6587;&#x4EF6;</p>
<h3 id="21-&#x7F16;&#x8F91;&#x5408;&#x7EA6;&#x5185;&#x5BB9;">2.1 &#x7F16;&#x8F91;&#x5408;&#x7EA6;&#x5185;&#x5BB9;</h3>
<p>&#x6211;&#x4EEC;&#x5148;&#x76F4;&#x63A5;&#x590D;&#x5236;&#x4F8B;&#x5B50;&#x4E2D;&#x7684; abstore.go&#x5408;&#x7EA6;&#x3002;</p>
<h2 id="3-&#x7F16;&#x5199;&#x5408;&#x7EA6;&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;">3. &#x7F16;&#x5199;&#x5408;&#x7EA6;&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;</h2>
<h3 id="31-&#x65B0;&#x5EFA;&#x6D4B;&#x8BD5;&#x6587;&#x4EF6;">3.1 &#x65B0;&#x5EFA;&#x6D4B;&#x8BD5;&#x6587;&#x4EF6;</h3>
<p>&#x5728; abstore.go&#x540C;&#x76EE;&#x5F55;&#x4E0B;&#xFF0C;&#x65B0;&#x5EFA; abstore_test.go</p>
<p>&#x5F15;&#x5165;&#x4EE5;&#x4E0B;&#x4F9D;&#x8D56;&#x5305;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-keyword">import</span> (
    <span class="hljs-string">&quot;fmt&quot;</span>
    <span class="hljs-string">&quot;testing&quot;</span>

    <span class="hljs-string">&quot;github.com/hyperledger/fabric-chaincode-go/shim&quot;</span>
    <span class="hljs-string">&quot;github.com/hyperledger/fabric-chaincode-go/shimtest&quot;</span>
)
</code></pre>
<p>&#x6211;&#x4EEC;&#x4E3B;&#x8981;&#x4F7F;&#x7528;shim&#x4EE5;&#x53CA;shimtest&#x53BB;&#x5E2E;&#x52A9;&#x6211;&#x4EEC;&#x6A21;&#x62DF;&#x73AF;&#x5883;&#x8FBE;&#x5230;&#x8C03;&#x8BD5;&#x5408;&#x7EA6;&#x4EE3;&#x7801;&#x7684;&#x6548;&#x679C;&#xFF0C;&#x56E0;&#x6B64;&#x4E0A;&#x9762;&#x7684;&#x5305;&#x662F;&#x6700;&#x57FA;&#x672C;&#x7684;&#x5F15;&#x5165;&#x3002;</p>
<h3 id="32-&#x7F16;&#x5199;&#x6D4B;&#x8BD5;&#x5185;&#x5BB9;&#x5E76;&#x8FDB;&#x884C;&#x6D4B;&#x8BD5;">3.2 &#x7F16;&#x5199;&#x6D4B;&#x8BD5;&#x5185;&#x5BB9;&#x5E76;&#x8FDB;&#x884C;&#x6D4B;&#x8BD5;</h3>
<h4 id="321-state-&#x67E5;&#x8BE2;&#x72B6;&#x6001;">3.2.1 state &#x67E5;&#x8BE2;&#x72B6;&#x6001;</h4>
<p>&#x7F16;&#x5199;&#x6D4B;&#x8BD5;&#x67E5;&#x8BE2;&#x72B6;&#x6001;&#x65B9;&#x6CD5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-keyword">func</span> checkState(t *testing.T, stub *shimtest.MockStub, name <span class="hljs-keyword">string</span>, value <span class="hljs-keyword">string</span>) {
    bytes := stub.State[name]
    <span class="hljs-keyword">if</span> bytes == <span class="hljs-literal">nil</span> {
        fmt.Println(<span class="hljs-string">&quot;State&quot;</span>, name, <span class="hljs-string">&quot;failed to get value&quot;</span>)
        t.FailNow()
    }
    <span class="hljs-keyword">if</span> <span class="hljs-keyword">string</span>(bytes) != value {
        fmt.Println(<span class="hljs-string">&quot;State value&quot;</span>, name, <span class="hljs-string">&quot;was not&quot;</span>, value, <span class="hljs-string">&quot;as expected&quot;</span>)
        t.FailNow()
    }
}
</code></pre>
<h4 id="322-init-&#x521D;&#x59CB;&#x5316;">3.2.2 init &#x521D;&#x59CB;&#x5316;</h4>
<p>&#x7F16;&#x5199;&#x6D4B;&#x8BD5;init&#x65B9;&#x6CD5;</p>
<pre><code class="lang-go"><span class="hljs-keyword">func</span> checkInit(t *testing.T, stub *shimtest.MockStub, args [][]<span class="hljs-keyword">byte</span>) {
    res := stub.MockInit(<span class="hljs-string">&quot;1&quot;</span>, args)
    <span class="hljs-keyword">if</span> res.Status != shim.OK {
        fmt.Println(<span class="hljs-string">&quot;Init failed&quot;</span>, <span class="hljs-keyword">string</span>(res.Message))
        t.FailNow()
    }
}
</code></pre>
<p>&#x6D4B;&#x8BD5;&#x65B9;&#x6CD5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-go">
<span class="hljs-keyword">func</span> TestExample02_Init(t *testing.T) {
    scc := <span class="hljs-built_in">new</span>(ABstore)
    stub := shimtest.NewMockStub(<span class="hljs-string">&quot;ex02&quot;</span>, scc)

    <span class="hljs-comment">// Init A=123 B=234</span>
    checkInit(t, stub, [][]<span class="hljs-keyword">byte</span>{[]<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;init&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;A&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;123&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;B&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;234&quot;</span>)})

    checkState(t, stub, <span class="hljs-string">&quot;A&quot;</span>, <span class="hljs-string">&quot;123&quot;</span>)
    checkState(t, stub, <span class="hljs-string">&quot;B&quot;</span>, <span class="hljs-string">&quot;234&quot;</span>)
}
</code></pre>
<p>&#x8FD0;&#x884C;&#x524D;&#x8981;&#x8FDB;&#x884C;<code>go mod vendor</code>&#x4E0B;&#x8F7D;&#x4F9D;&#x8D56;&#xFF0C;&#x6DFB;&#x52A0;&#x65AD;&#x70B9;&#xFF0C;&#x8FD0;&#x884C;&#x8C03;&#x8BD5;
<img src="https://img-blog.csdnimg.cn/20200302185312276.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI4NTQwNDQz,size_16,color_FFFFFF,t_70" alt="&#x5728;&#x8FD9;&#x91CC;&#x63D2;&#x5165;&#x56FE;&#x7247;&#x63CF;&#x8FF0;">
&#x53F3;&#x8FB9;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x53D8;&#x91CF;&#x503C;</p>
<p>&#x63A7;&#x5236;&#x53F0;debug console&#x8F93;&#x51FA;&#xFF1A;</p>
<p><img src="https://img-blog.csdnimg.cn/20200302185443430.png" alt="&#x5728;&#x8FD9;&#x91CC;&#x63D2;&#x5165;&#x56FE;&#x7247;&#x63CF;&#x8FF0;">
&#x770B;&#x5230;Pass&#x6210;&#x529F;&#x5373;&#x6D4B;&#x8BD5;&#x901A;&#x8FC7;&#x3002;</p>
<h4 id="323-invoke&#x4EA4;&#x6613;">3.2.3 invoke&#x4EA4;&#x6613;</h4>
<p>invoke&#x8C03;&#x7528;MockInvoke</p>
<pre><code class="lang-go"><span class="hljs-keyword">func</span> checkInvoke(t *testing.T, stub *shimtest.MockStub, args [][]<span class="hljs-keyword">byte</span>) {
    res := stub.MockInvoke(<span class="hljs-string">&quot;1&quot;</span>, args)
    <span class="hljs-keyword">if</span> res.Status != shim.OK {
        fmt.Println(<span class="hljs-string">&quot;Invoke&quot;</span>, args, <span class="hljs-string">&quot;failed&quot;</span>, <span class="hljs-keyword">string</span>(res.Message))
        t.FailNow()
    }
}
</code></pre>
<p>&#x7F16;&#x5199;&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;</p>
<pre><code class="lang-go"><span class="hljs-keyword">func</span> TestExample02_Invoke(t *testing.T) {
    scc := <span class="hljs-built_in">new</span>(ABstore)
    stub := shimtest.NewMockStub(<span class="hljs-string">&quot;ex02&quot;</span>, scc)

    <span class="hljs-comment">// Init A=567 B=678</span>
    checkInit(t, stub, [][]<span class="hljs-keyword">byte</span>{[]<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;init&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;A&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;567&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;B&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;678&quot;</span>)})

    <span class="hljs-comment">// Invoke A-&gt;B for 123</span>
    checkInvoke(t, stub, [][]<span class="hljs-keyword">byte</span>{[]<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;invoke&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;A&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;B&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;123&quot;</span>)})
    checkQuery(t, stub, <span class="hljs-string">&quot;A&quot;</span>, <span class="hljs-string">&quot;444&quot;</span>)
    checkQuery(t, stub, <span class="hljs-string">&quot;B&quot;</span>, <span class="hljs-string">&quot;801&quot;</span>)

    <span class="hljs-comment">// Invoke B-&gt;A for 234</span>
    checkInvoke(t, stub, [][]<span class="hljs-keyword">byte</span>{[]<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;invoke&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;B&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;A&quot;</span>), []<span class="hljs-keyword">byte</span>(<span class="hljs-string">&quot;234&quot;</span>)})
    checkQuery(t, stub, <span class="hljs-string">&quot;A&quot;</span>, <span class="hljs-string">&quot;678&quot;</span>)
    checkQuery(t, stub, <span class="hljs-string">&quot;B&quot;</span>, <span class="hljs-string">&quot;567&quot;</span>)
    checkQuery(t, stub, <span class="hljs-string">&quot;A&quot;</span>, <span class="hljs-string">&quot;678&quot;</span>)
    checkQuery(t, stub, <span class="hljs-string">&quot;B&quot;</span>, <span class="hljs-string">&quot;567&quot;</span>)
}
</code></pre>
<p>&#x8C03;&#x8BD5;&#x8FC7;&#x7A0B;&#x4E0E;3.2.2&#x4E00;&#x81F4;</p>
<h2 id="4&#x603B;&#x7ED3;">4.&#x603B;&#x7ED3;</h2>
<p>&#x9879;&#x76EE;&#x603B;&#x4F53;&#x76EE;&#x5F55;&#x5982;&#x4E0B;</p>
<p><img src="https://img-blog.csdnimg.cn/20200302185920188.png" alt="&#x5728;&#x8FD9;&#x91CC;&#x63D2;&#x5165;&#x56FE;&#x7247;&#x63CF;&#x8FF0;"></p>
<p>&#x901A;&#x8FC7;shim&#x5305;&#x63D0;&#x4F9B;&#x7684;mock&#x8FDB;&#x884C;&#x8C03;&#x8BD5;&#x786E;&#x5B9E;&#x662F;&#x6BD4;&#x8F83;&#x65B9;&#x4FBF;&#x5B9E;&#x9645;&#xFF0C;&#x4E0D;&#x9700;&#x8981;&#x53BB;&#x53E6;&#x5916;&#x90E8;&#x7F72;&#x5BB9;&#x5668;&#xFF0C;&#x6BD4;&#x8F83;&#x63A8;&#x8350;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="chap9.html" class="navigation navigation-prev " aria-label="Previous page: 智能合约设置背书策略">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="chap11.html" class="navigation navigation-next " aria-label="Next page: 外部构建启动合约">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"调试go智能合约","level":"1.4.4","depth":2,"next":{"title":"外部构建启动合约","level":"1.4.5","depth":2,"path":"chap11.md","ref":"chap11.md","articles":[]},"previous":{"title":"智能合约设置背书策略","level":"1.4.3","depth":2,"path":"chap9.md","ref":"chap9.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"chap10.md","mtime":"2020-03-12T03:45:27.161Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-12T04:26:38.647Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

